package com.hp.ssm.bean;

import java.util.ArrayList;
import java.util.List;

public class PeopleExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PeopleExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPidIsNull() {
            addCriterion("pid is null");
            return (Criteria) this;
        }

        public Criteria andPidIsNotNull() {
            addCriterion("pid is not null");
            return (Criteria) this;
        }

        public Criteria andPidEqualTo(Integer value) {
            addCriterion("pid =", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotEqualTo(Integer value) {
            addCriterion("pid <>", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThan(Integer value) {
            addCriterion("pid >", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThanOrEqualTo(Integer value) {
            addCriterion("pid >=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThan(Integer value) {
            addCriterion("pid <", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThanOrEqualTo(Integer value) {
            addCriterion("pid <=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidIn(List<Integer> values) {
            addCriterion("pid in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotIn(List<Integer> values) {
            addCriterion("pid not in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidBetween(Integer value1, Integer value2) {
            addCriterion("pid between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotBetween(Integer value1, Integer value2) {
            addCriterion("pid not between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andPnumIsNull() {
            addCriterion("pnum is null");
            return (Criteria) this;
        }

        public Criteria andPnumIsNotNull() {
            addCriterion("pnum is not null");
            return (Criteria) this;
        }

        public Criteria andPnumEqualTo(String value) {
            addCriterion("pnum =", value, "pnum");
            return (Criteria) this;
        }

        public Criteria andPnumNotEqualTo(String value) {
            addCriterion("pnum <>", value, "pnum");
            return (Criteria) this;
        }

        public Criteria andPnumGreaterThan(String value) {
            addCriterion("pnum >", value, "pnum");
            return (Criteria) this;
        }

        public Criteria andPnumGreaterThanOrEqualTo(String value) {
            addCriterion("pnum >=", value, "pnum");
            return (Criteria) this;
        }

        public Criteria andPnumLessThan(String value) {
            addCriterion("pnum <", value, "pnum");
            return (Criteria) this;
        }

        public Criteria andPnumLessThanOrEqualTo(String value) {
            addCriterion("pnum <=", value, "pnum");
            return (Criteria) this;
        }

        public Criteria andPnumLike(String value) {
            addCriterion("pnum like", value, "pnum");
            return (Criteria) this;
        }

        public Criteria andPnumNotLike(String value) {
            addCriterion("pnum not like", value, "pnum");
            return (Criteria) this;
        }

        public Criteria andPnumIn(List<String> values) {
            addCriterion("pnum in", values, "pnum");
            return (Criteria) this;
        }

        public Criteria andPnumNotIn(List<String> values) {
            addCriterion("pnum not in", values, "pnum");
            return (Criteria) this;
        }

        public Criteria andPnumBetween(String value1, String value2) {
            addCriterion("pnum between", value1, value2, "pnum");
            return (Criteria) this;
        }

        public Criteria andPnumNotBetween(String value1, String value2) {
            addCriterion("pnum not between", value1, value2, "pnum");
            return (Criteria) this;
        }

        public Criteria andPnameIsNull() {
            addCriterion("pname is null");
            return (Criteria) this;
        }

        public Criteria andPnameIsNotNull() {
            addCriterion("pname is not null");
            return (Criteria) this;
        }

        public Criteria andPnameEqualTo(String value) {
            addCriterion("pname =", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameNotEqualTo(String value) {
            addCriterion("pname <>", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameGreaterThan(String value) {
            addCriterion("pname >", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameGreaterThanOrEqualTo(String value) {
            addCriterion("pname >=", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameLessThan(String value) {
            addCriterion("pname <", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameLessThanOrEqualTo(String value) {
            addCriterion("pname <=", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameLike(String value) {
            addCriterion("pname like", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameNotLike(String value) {
            addCriterion("pname not like", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameIn(List<String> values) {
            addCriterion("pname in", values, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameNotIn(List<String> values) {
            addCriterion("pname not in", values, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameBetween(String value1, String value2) {
            addCriterion("pname between", value1, value2, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameNotBetween(String value1, String value2) {
            addCriterion("pname not between", value1, value2, "pname");
            return (Criteria) this;
        }

        public Criteria andPsexIsNull() {
            addCriterion("psex is null");
            return (Criteria) this;
        }

        public Criteria andPsexIsNotNull() {
            addCriterion("psex is not null");
            return (Criteria) this;
        }

        public Criteria andPsexEqualTo(String value) {
            addCriterion("psex =", value, "psex");
            return (Criteria) this;
        }

        public Criteria andPsexNotEqualTo(String value) {
            addCriterion("psex <>", value, "psex");
            return (Criteria) this;
        }

        public Criteria andPsexGreaterThan(String value) {
            addCriterion("psex >", value, "psex");
            return (Criteria) this;
        }

        public Criteria andPsexGreaterThanOrEqualTo(String value) {
            addCriterion("psex >=", value, "psex");
            return (Criteria) this;
        }

        public Criteria andPsexLessThan(String value) {
            addCriterion("psex <", value, "psex");
            return (Criteria) this;
        }

        public Criteria andPsexLessThanOrEqualTo(String value) {
            addCriterion("psex <=", value, "psex");
            return (Criteria) this;
        }

        public Criteria andPsexLike(String value) {
            addCriterion("psex like", value, "psex");
            return (Criteria) this;
        }

        public Criteria andPsexNotLike(String value) {
            addCriterion("psex not like", value, "psex");
            return (Criteria) this;
        }

        public Criteria andPsexIn(List<String> values) {
            addCriterion("psex in", values, "psex");
            return (Criteria) this;
        }

        public Criteria andPsexNotIn(List<String> values) {
            addCriterion("psex not in", values, "psex");
            return (Criteria) this;
        }

        public Criteria andPsexBetween(String value1, String value2) {
            addCriterion("psex between", value1, value2, "psex");
            return (Criteria) this;
        }

        public Criteria andPsexNotBetween(String value1, String value2) {
            addCriterion("psex not between", value1, value2, "psex");
            return (Criteria) this;
        }

        public Criteria andPwardnumIsNull() {
            addCriterion("pwardnum is null");
            return (Criteria) this;
        }

        public Criteria andPwardnumIsNotNull() {
            addCriterion("pwardnum is not null");
            return (Criteria) this;
        }

        public Criteria andPwardnumEqualTo(String value) {
            addCriterion("pwardnum =", value, "pwardnum");
            return (Criteria) this;
        }

        public Criteria andPwardnumNotEqualTo(String value) {
            addCriterion("pwardnum <>", value, "pwardnum");
            return (Criteria) this;
        }

        public Criteria andPwardnumGreaterThan(String value) {
            addCriterion("pwardnum >", value, "pwardnum");
            return (Criteria) this;
        }

        public Criteria andPwardnumGreaterThanOrEqualTo(String value) {
            addCriterion("pwardnum >=", value, "pwardnum");
            return (Criteria) this;
        }

        public Criteria andPwardnumLessThan(String value) {
            addCriterion("pwardnum <", value, "pwardnum");
            return (Criteria) this;
        }

        public Criteria andPwardnumLessThanOrEqualTo(String value) {
            addCriterion("pwardnum <=", value, "pwardnum");
            return (Criteria) this;
        }

        public Criteria andPwardnumLike(String value) {
            addCriterion("pwardnum like", value, "pwardnum");
            return (Criteria) this;
        }

        public Criteria andPwardnumNotLike(String value) {
            addCriterion("pwardnum not like", value, "pwardnum");
            return (Criteria) this;
        }

        public Criteria andPwardnumIn(List<String> values) {
            addCriterion("pwardnum in", values, "pwardnum");
            return (Criteria) this;
        }

        public Criteria andPwardnumNotIn(List<String> values) {
            addCriterion("pwardnum not in", values, "pwardnum");
            return (Criteria) this;
        }

        public Criteria andPwardnumBetween(String value1, String value2) {
            addCriterion("pwardnum between", value1, value2, "pwardnum");
            return (Criteria) this;
        }

        public Criteria andPwardnumNotBetween(String value1, String value2) {
            addCriterion("pwardnum not between", value1, value2, "pwardnum");
            return (Criteria) this;
        }

        public Criteria andPbirthdayIsNull() {
            addCriterion("pbirthday is null");
            return (Criteria) this;
        }

        public Criteria andPbirthdayIsNotNull() {
            addCriterion("pbirthday is not null");
            return (Criteria) this;
        }

        public Criteria andPbirthdayEqualTo(String value) {
            addCriterion("pbirthday =", value, "pbirthday");
            return (Criteria) this;
        }

        public Criteria andPbirthdayNotEqualTo(String value) {
            addCriterion("pbirthday <>", value, "pbirthday");
            return (Criteria) this;
        }

        public Criteria andPbirthdayGreaterThan(String value) {
            addCriterion("pbirthday >", value, "pbirthday");
            return (Criteria) this;
        }

        public Criteria andPbirthdayGreaterThanOrEqualTo(String value) {
            addCriterion("pbirthday >=", value, "pbirthday");
            return (Criteria) this;
        }

        public Criteria andPbirthdayLessThan(String value) {
            addCriterion("pbirthday <", value, "pbirthday");
            return (Criteria) this;
        }

        public Criteria andPbirthdayLessThanOrEqualTo(String value) {
            addCriterion("pbirthday <=", value, "pbirthday");
            return (Criteria) this;
        }

        public Criteria andPbirthdayLike(String value) {
            addCriterion("pbirthday like", value, "pbirthday");
            return (Criteria) this;
        }

        public Criteria andPbirthdayNotLike(String value) {
            addCriterion("pbirthday not like", value, "pbirthday");
            return (Criteria) this;
        }

        public Criteria andPbirthdayIn(List<String> values) {
            addCriterion("pbirthday in", values, "pbirthday");
            return (Criteria) this;
        }

        public Criteria andPbirthdayNotIn(List<String> values) {
            addCriterion("pbirthday not in", values, "pbirthday");
            return (Criteria) this;
        }

        public Criteria andPbirthdayBetween(String value1, String value2) {
            addCriterion("pbirthday between", value1, value2, "pbirthday");
            return (Criteria) this;
        }

        public Criteria andPbirthdayNotBetween(String value1, String value2) {
            addCriterion("pbirthday not between", value1, value2, "pbirthday");
            return (Criteria) this;
        }

        public Criteria andPbirthplaceIsNull() {
            addCriterion("pbirthplace is null");
            return (Criteria) this;
        }

        public Criteria andPbirthplaceIsNotNull() {
            addCriterion("pbirthplace is not null");
            return (Criteria) this;
        }

        public Criteria andPbirthplaceEqualTo(String value) {
            addCriterion("pbirthplace =", value, "pbirthplace");
            return (Criteria) this;
        }

        public Criteria andPbirthplaceNotEqualTo(String value) {
            addCriterion("pbirthplace <>", value, "pbirthplace");
            return (Criteria) this;
        }

        public Criteria andPbirthplaceGreaterThan(String value) {
            addCriterion("pbirthplace >", value, "pbirthplace");
            return (Criteria) this;
        }

        public Criteria andPbirthplaceGreaterThanOrEqualTo(String value) {
            addCriterion("pbirthplace >=", value, "pbirthplace");
            return (Criteria) this;
        }

        public Criteria andPbirthplaceLessThan(String value) {
            addCriterion("pbirthplace <", value, "pbirthplace");
            return (Criteria) this;
        }

        public Criteria andPbirthplaceLessThanOrEqualTo(String value) {
            addCriterion("pbirthplace <=", value, "pbirthplace");
            return (Criteria) this;
        }

        public Criteria andPbirthplaceLike(String value) {
            addCriterion("pbirthplace like", value, "pbirthplace");
            return (Criteria) this;
        }

        public Criteria andPbirthplaceNotLike(String value) {
            addCriterion("pbirthplace not like", value, "pbirthplace");
            return (Criteria) this;
        }

        public Criteria andPbirthplaceIn(List<String> values) {
            addCriterion("pbirthplace in", values, "pbirthplace");
            return (Criteria) this;
        }

        public Criteria andPbirthplaceNotIn(List<String> values) {
            addCriterion("pbirthplace not in", values, "pbirthplace");
            return (Criteria) this;
        }

        public Criteria andPbirthplaceBetween(String value1, String value2) {
            addCriterion("pbirthplace between", value1, value2, "pbirthplace");
            return (Criteria) this;
        }

        public Criteria andPbirthplaceNotBetween(String value1, String value2) {
            addCriterion("pbirthplace not between", value1, value2, "pbirthplace");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}